.class Lcom/hyphenate/chat/EMGroupManager$1;
.super Lcom/hyphenate/chat/adapter/EMAGroupManagerListener;


# instance fields
.field final synthetic this$0:Lcom/hyphenate/chat/EMGroupManager;


# direct methods
.method constructor <init>(Lcom/hyphenate/chat/EMGroupManager;)V
    .locals 0

    iput-object p1, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMAGroupManagerListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onAutoAcceptInvitationFromGroup(Lcom/hyphenate/chat/adapter/EMAGroup;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3, p2, p3}, Lcom/hyphenate/EMGroupChangeListener;->onAutoAcceptInvitationFromGroup(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onLeaveGroup(Lcom/hyphenate/chat/adapter/EMAGroup;I)V
    .locals 5

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMChatManager;->caches:Ljava/util/Map;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    sget-object v3, Lcom/hyphenate/chat/adapter/EMAGroup$EMGroupLeaveReason;->BE_KICKED:Lcom/hyphenate/chat/adapter/EMAGroup$EMGroupLeaveReason;

    invoke-virtual {v3}, Lcom/hyphenate/chat/adapter/EMAGroup$EMGroupLeaveReason;->ordinal()I

    move-result v3

    if-ne p2, v3, :cond_0

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSubject()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v3, v4}, Lcom/hyphenate/EMGroupChangeListener;->onUserRemoved(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSubject()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v3, v4}, Lcom/hyphenate/EMGroupChangeListener;->onGroupDestroyed(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onReceiveAcceptionFromGroup(Lcom/hyphenate/chat/adapter/EMAGroup;)V
    .locals 6

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSubject()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->getOwner()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v0, v3, v4, v5}, Lcom/hyphenate/EMGroupChangeListener;->onApplicationAccept(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onReceiveInviteAcceptionFromGroup(Lcom/hyphenate/chat/adapter/EMAGroup;Ljava/lang/String;)V
    .locals 5

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    const-string/jumbo v4, ""

    invoke-interface {v0, v3, p2, v4}, Lcom/hyphenate/EMGroupChangeListener;->onInvitationAccepted(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onReceiveInviteDeclineFromGroup(Lcom/hyphenate/chat/adapter/EMAGroup;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    const-string/jumbo v4, ""

    invoke-interface {v0, v3, p2, v4}, Lcom/hyphenate/EMGroupChangeListener;->onInvitationDeclined(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onReceiveInviteFromGroup(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    const-string/jumbo v3, ""

    invoke-interface {v0, p1, v3, p2, p3}, Lcom/hyphenate/EMGroupChangeListener;->onInvitationReceived(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onReceiveJoinGroupApplication(Lcom/hyphenate/chat/adapter/EMAGroup;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSubject()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v3, v4, p2, p3}, Lcom/hyphenate/EMGroupChangeListener;->onApplicationReceived(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onReceiveRejectionFromGroup(Ljava/lang/String;Ljava/lang/String;)V
    .locals 5

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/EMGroupManager;->getGroup(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v1

    if-nez v1, :cond_0

    const-string/jumbo v0, ""

    move-object v2, v0

    :goto_0
    if-nez v1, :cond_1

    const-string/jumbo v0, ""

    move-object v1, v0

    :goto_1
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v3, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    monitor-enter v3

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager$1;->this$0:Lcom/hyphenate/chat/EMGroupManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMGroupChangeListener;

    invoke-interface {v0, p1, v2, v1, p2}, Lcom/hyphenate/EMGroupChangeListener;->onApplicationDeclined(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit v3
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMGroup;->groupSubject()Ljava/lang/String;

    move-result-object v0

    move-object v2, v0

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Lcom/hyphenate/chat/EMGroup;->getOwner()Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    goto :goto_1

    :cond_2
    :try_start_1
    monitor-exit v3
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onUpdateMyGroupList(Ljava/util/List;)V
    .locals 0

    return-void
.end method
